class OcrItem(object):
    def __init__(self, value, pos, key=''):
        self.key = key
        self.value = value
        self.pos = pos

    # 重写print
    def __str__(self):
        return "key: {}; value: {}; pos: {}".format(self.key, self.value, self.pos)

    # 重写 < 符号用于sorted
    def __lt__(self, other):
        return self.pos[0][0] < other.pos[0][0]
